package com.acme.task2;

public class GCTestModified {

	public static void main(String[] args) {
		int numberOfIterations = 1000000000; //When numberOfIteration is very big, OutOfMemoryError is thrown 
										  
		
		Foo[] array = new Foo[numberOfIterations];
		for (int i = 0; i < numberOfIterations; i++) {
			array[i] = new Foo(i);
		}
	}
}
